package main

import (
	"fmt"
)

type MyInt int

func (myInt MyInt) print() {
	myInt = 30
	fmt.Println("int=", myInt)
}

func (myInt *MyInt) change() {
	*myInt = 30
	fmt.Println("int=", *myInt)
}

func main() {
	var num MyInt = 20
	num.print()
	fmt.Println(num)

	num.change()
	fmt.Println(num)
}
